package com.zhima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhima.entity.OjRole;
import com.zhima.entity.OjUserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhima
 * @since 2023-08-23
 */
@Mapper
public interface OjUserRoleMapper extends BaseMapper<OjUserRole> {
    /**
     * 返回指定用户的角色列表
     *
     * @param userId
     * @return
     */
    List<OjRole> queryUserRole(Long userId);
}
